package com.ysy.logistics.entities.device;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author 姚斯羽
 * @date 2025/4/18 16:00
 * @description: 设备生命周期
 */
@Data
@TableName("device_life")
@Schema(name = "device_life", description = "设备生命周期")
@Accessors(chain = true)
public class DeviceLife {

    @Schema(description = "Id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "设备Id")
    @TableField(value = "device_id")
    private String deviceId;

    @Schema(description = "设备数值")
    @TableField(value = "device_num")
    private Integer deviceNum;

    @Schema(description = "记录时间")
    @TableField(value = "record_time")
    private Date recordTime;

    @Schema(description = "设备状态")
    @TableField(value = "status")
    //-1过低，0正常，1过高
    private Integer status = 0;
}

